import request from '@/utils/request'

// 查询任务列表
export function listT_task(query) {
  return request({
    url: '/backend/t_task/list',
    method: 'get',
    params: query
  })
}

// 查询任务详细
export function getT_task(id) {
  return request({
    url: '/backend/t_task/' + id,
    method: 'get'
  })
}

// 新增任务
export function addT_task(data) {
  return request({
    url: '/backend/t_task',
    method: 'post',
    data: data
  })
}

// 修改任务
export function updateT_task(data) {
  return request({
    url: '/backend/t_task',
    method: 'put',
    data: data
  })
}

// 删除任务
export function delT_task(id) {
  return request({
    url: '/backend/t_task/' + id,
    method: 'delete'
  })
}

// 任务审核
export function auditTask(data) {
  return request({
    url: '/backend/t_task/auditTask',
    method: 'put',
    data: data
  })
}
